package com.cmes.mes.basic.core.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cmes.core.annotation.Dict;
import com.cmes.jdbc.entity.GenericEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 仓库
 *
 * @author Bruce.Gong
 * @since 1.0.0-SNAPSHOT
 */
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("t_mes_warehouse")
public class WarehouseEntity extends GenericEntity {

    @TableId
    private Long id;
    @Dict(code = "warehouse_type", desc = "1仓库2产线3对外")
    private Integer type;
    private String name;
    private String remark;
    @Dict(code = "enable_status")
    private Integer status;

}
